package community.hospital.mapper;

import community.hospital.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
* @author ydj
* @description 针对表【menu】的数据库操作Mapper
* @createDate 2023-01-16 16:35:35
* @Entity community.hospital.entity.Menu
*/
public interface MenuMapper extends BaseMapper<Menu> {
    @MapKey("role_id")
    List<Map<Long, Menu>> mapMenuByRoleIds(List<Long> roleIds);
}




